package com.banmao.algorithm.No101To200.No116;

public class Answer {

    public static void main(String[] args) {
        Solution2 solution = new Solution2();

        Node root = new Node(1, new Node(2, new Node(4), new Node(5), null), new Node(3, new Node(6), new Node(7), null), null);

        Node res = solution.connect(root);

        System.out.println(res.val);
    }

}
